<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
    <div class="timo-detail-page">
        <div class="timo-detail-title">基本信息</div>
        <form th:action="@{/member/agentmoney/approval}">
        <table class="layui-table timo-detail-table">
            <colgroup>
                <col width="100px"><col>
                <col width="100px"><col>
            </colgroup>
            <tbody>
                <tr>
                    <th>主键ID</th>
                    <td th:text="${memberAgent.id}"></td>
                    <th>昵称</th>
                    <td th:text="${memberAgent.member.nickname}"></td>
                </tr>
                <tr>
                    <th>头像</th>
                    <td >
                        <img th:src="${memberAgent.member.headimg}" alt="头像" style="width: 40px;height: 40px;">
                    </td>
                    <th>openid</th>
                    <td th:text="${memberAgent.member.openid}"></td>
                </tr>
                <tr>
                    <th>所属城市</th>
                    <td th:text="${memberMoney.areaName}"></td>
                    <th>历史总收益</th>
                    <td th:text="${memberAgent.allmoney}"></td>
                </tr>
                <tr>
                    <th>当前余额</th>
                    <td th:text="${memberAgent.curmoney}"></td>
                    <th>本次申请提现额</th>
                    <td th:text="${memberMoney.curmoney}"></td>
                </tr>
                <tr>
                    <th>实际提现额</th>
                    <td th:text="${#numbers.formatDecimal(memberMoney.curmoney*(0.9*0.997),1,'COMMA',2,'POINT')}"></td>
                    <th>平台分成额</th>
                    <td th:text="${#numbers.formatDecimal(memberMoney.curmoney*(0.1*0.994-0.9*0.003),1,'COMMA',2,'POINT')}"></td>
                </tr>
                <tr>
                    <th>支付金额</th>
                    <td th:text="${memberMoney.paymoney}"></td>
                    <th>状态</th>
                    <td th:switch="${memberMoney.status}" >
                        <span th:case="0">待审核</span>
                        <span th:case="1">已通过</span>
                        <span th:case="2">已拒绝</span>
                    </td>
                </tr>
                <tr>
                    <th>创建时间</th>
                    <td th:text="${#dates.format(memberMoney.createDate, 'yyyy-MM-dd HH:mm:ss')}"></td>
                    <th>支付时间</th>
                    <td th:text="${#dates.format(memberMoney.paymoneyDate, 'yyyy-MM-dd HH:mm:ss')}"></td>
                </tr>
                <tr th:if="${memberMoney.status==0}">
                    <td colspan="4">
                        <input type="hidden" name="id" th:value="${memberMoney.id}">
                        <input type="radio" name="status" value="1" title="同意并微信付款" checked="">同意并微信付款
                        <input type="radio" name="status" value="3" title="同意仅记录（用于线下支付过的）">同意仅记录（用于线下支付过的）
                        <input type="radio" name="status" value="2" title="拒绝">拒绝
                    </td>
                </tr>
                <tr th:if="${memberMoney.status==0}">
                    <td colspan="4">
                        <button class="layui-btn ajax-submit"><i class="fa fa-check-circle"></i>操作</button>

                        <button class="layui-btn btn-secondary close-popup"><i class="fa fa-times-circle"></i>取消</button>
                    </td>
                </tr>
            </tbody>
        </table>
        </form>
    </div>
<script th:replace="/common/template :: script"></script>
</body>
</html>